home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
mus
/
misc
/
mp3info.lha
/
MP3Info.p
< prev
Wrap
Text File
|
1998-04-19
|
3KB
|
55 lines
;
;
; (c) 1998 Cyborg
{* Include sys:coder/preass/Options.p *}
{* Include sys:coder/preass/Prozeduren.p *}
{* String: Version="$VER: Mp3info (C) CYBORG 98"*}
{* IncVar: Type,Art,Chunk,chunklaenge*}
Start:
OH=Output()
OK=GetFilename()
If (FH=Open(#Filename,#Mode_old))##0 {
Read(FH,#Chunk,4)
If Chunk##"FORM" ---> .error
Read(FH,#Chunklaenge,4)
Read(FH,#Type,4)
Read(FH,#Art,4)
If Type##"AIFF" or Art##"COMM" --> .error
Read(FH,#Chunklaenge,4)
Seek(FH,Chunklaenge,#Offset_Current)
Read(FH,#Chunk,4)
If Chunk##"SSND" --> .error
Read(FH,#Chunklaenge,4)
MP3laenge==Chunklaenge/11
Frames==mp3laenge/417
Zeit==Mp3laenge/2980
Minuten==Zeit/60
Sekunden==Minuten*60
Sekunden==Zeit-Sekunden
Write(OH,"\nLänge AIFF: ",?)
Convertzahl(Chunklaenge,OH)
Write(OH," Bytes\nLänge MP3: ca.",?)
Convertzahl(Mp3laenge,OH)
Write(OH," Bytes \nFrames: ",?)
Convertzahl(Frames,OH)
Write(OH,"\nKonvertierdauer: ",?)
Convertzahl(Zeit,OH)
Write(OH," Sekunden\nZeit: ",?)
Convertzahl(Minuten,0)
Write(OH,#zahl,4)
Write(OH," Min. ",?)
Convertzahl(Sekunden,0)
Write(OH,#zahl,4)
Write(OH," Sek.\n\n",?)
Close(FH)
}
RTS
.error:
Write(OH,"Kein AIFF oder falscher Typ!\n",?)
Close(FH)
RTS